import { Component, OnInit } from '@angular/core';
import {Service} from '../service/service';
@Component({
  selector: 'app-user',
  templateUrl: './user.component.html',
  styleUrls: ['./user.component.scss']
})
export class UserComponent implements OnInit {

  constructor(private service: Service) {
    this.getAllUser();
  }
  listOfData = [

  ];
  getAllUser() {
    this.service.getAllUser(null, (result) => {
      this.listOfData = result.data;
    });
  }
  ngOnInit(): void {
  }

}
